<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>embedme: libemb/inc/DebugPrint.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">embedme
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.8 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="annotated.html"><span>类</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>文件成员</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_574d9269cd334a9d02d8928365303d98.html">libemb</a></li><li class="navelem"><a class="el" href="dir_207aad82934689048a9003fb51f06f7f.html">inc</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">DebugPrint.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_debug_print_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/******************************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * This file is part of libemb.</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * libemb is free software: you can redistribute it and/or modify</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * the Free Software Foundation, either version 3 of the License, or</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * (at your option) any later version.</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * libemb is distributed in the hope that it will be useful,</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * GNU General Public License for more details.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * along with libemb.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * Project: Embedme</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * Author : FergusZeng</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * Email  : cblock@126.com</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * git    : https://git.oschina.net/cblock/embedme</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * Copyright 2014 @ ShenZhen ,China</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">*******************************************************************************/</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#ifndef __DEBUG_PRINT_H__</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#define __DEBUG_PRINT_H__</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_base_type_8h.html">BaseType.h</a>&quot;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="_debug_print_8h.html#a69666523fbc7f83c8119c8bd918ba633">   36</a></span>&#160;<span class="preprocessor">#define DEBUG_REL               4       </span></div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="_debug_print_8h.html#a653623da09fe4c8356e422b4ce555b70">   37</a></span>&#160;<span class="preprocessor">#define DEBUG_ERR               3       </span></div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="_debug_print_8h.html#ac9603ba178c9f584ce4ea7f51798e67d">   38</a></span>&#160;<span class="preprocessor">#define DEBUG_WARN              2       </span></div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="_debug_print_8h.html#a4407b4d6eae3ba7fe9538b1242a7e165">   39</a></span>&#160;<span class="preprocessor">#define DEBUG_INFO              1       </span></div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="_debug_print_8h.html#ab8344533c285367480d3b101df197a01">   40</a></span>&#160;<span class="preprocessor">#define DEBUG_DBG               0       </span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">void DebugPrint(sint32 printLevel,const char* format,...);</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="keywordtype">void</span> <a class="code" href="_debug_print_8h.html#a2f7470d52c5228c3c49911db65d8d8f4">DebugPrintMore</a>();</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="keywordtype">void</span> <a class="code" href="_debug_print_8h.html#ab689f3e81eae1ed417720009b4f33393">DebugPrintLess</a>();</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="keywordtype">void</span> <a class="code" href="_debug_print_8h.html#a7c5f7ae51bc877f1514c32a19a816f03">DebugPrintLevelSet</a>(sint32 level);</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;sint32 <a class="code" href="_debug_print_8h.html#acb8daaa78864379813a74092d959ccb0">DebugPrintLevel</a>();</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="keywordtype">void</span> <a class="code" href="_debug_print_8h.html#a96f4ae49cc34a003eeff0799eed93db5">DebugPrintEnable</a>(<span class="keywordtype">bool</span> enbale);</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="keywordtype">void</span> <a class="code" href="_debug_print_8h.html#a2d67ad9fd673f5b60534fadc138c61eb">DebugPrintHex</a>(sint32 printLevel,<span class="keyword">const</span> <span class="keywordtype">char</span>* tag,<span class="keyword">const</span> <span class="keywordtype">char</span>* buf,uint32 len);</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="keywordtype">char</span>* <a class="code" href="_debug_print_8h.html#ab162380fc8b9ecd4783ef38fc32641c3">DebugTime</a>();</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="keywordtype">void</span>  <a class="code" href="_debug_print_8h.html#a0024c58dbc30501f3b520698857ff45b">DebugTimeStart</a>();</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="keywordtype">void</span>  <a class="code" href="_debug_print_8h.html#a64c47268fbd897cd18075cdca497c9f6">DebugTimeEnd</a>();</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="keywordtype">void</span>  <a class="code" href="_debug_print_8h.html#a1af92082f6c84139420666c0e9350c0f">DebugTimeShow</a>();</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div>
<div class="ttc" id="_debug_print_8h_html_a1af92082f6c84139420666c0e9350c0f"><div class="ttname"><a href="_debug_print_8h.html#a1af92082f6c84139420666c0e9350c0f">DebugTimeShow</a></div><div class="ttdeci">void DebugTimeShow()</div><div class="ttdoc">打印调试时间桩的间隔 </div><div class="ttdef"><b>Definition:</b> DebugPrint.cpp:189</div></div>
<div class="ttc" id="_debug_print_8h_html_ab689f3e81eae1ed417720009b4f33393"><div class="ttname"><a href="_debug_print_8h.html#ab689f3e81eae1ed417720009b4f33393">DebugPrintLess</a></div><div class="ttdeci">void DebugPrintLess()</div><div class="ttdoc">调高打印级别,打印更少信息 </div><div class="ttdef"><b>Definition:</b> DebugPrint.cpp:91</div></div>
<div class="ttc" id="_debug_print_8h_html_a2d67ad9fd673f5b60534fadc138c61eb"><div class="ttname"><a href="_debug_print_8h.html#a2d67ad9fd673f5b60534fadc138c61eb">DebugPrintHex</a></div><div class="ttdeci">void DebugPrintHex(sint32 printLevel, const char *tag, const char *buf, uint32 len)</div><div class="ttdoc">以16进制字串的格式打印数据 </div><div class="ttdef"><b>Definition:</b> DebugPrint.cpp:215</div></div>
<div class="ttc" id="_debug_print_8h_html_a7c5f7ae51bc877f1514c32a19a816f03"><div class="ttname"><a href="_debug_print_8h.html#a7c5f7ae51bc877f1514c32a19a816f03">DebugPrintLevelSet</a></div><div class="ttdeci">void DebugPrintLevelSet(sint32 level)</div><div class="ttdoc">设置打印级别 </div><div class="ttdef"><b>Definition:</b> DebugPrint.cpp:107</div></div>
<div class="ttc" id="_debug_print_8h_html_a64c47268fbd897cd18075cdca497c9f6"><div class="ttname"><a href="_debug_print_8h.html#a64c47268fbd897cd18075cdca497c9f6">DebugTimeEnd</a></div><div class="ttdeci">void DebugTimeEnd()</div><div class="ttdoc">调试时间桩结束 </div><div class="ttdef"><b>Definition:</b> DebugPrint.cpp:178</div></div>
<div class="ttc" id="_debug_print_8h_html_a2f7470d52c5228c3c49911db65d8d8f4"><div class="ttname"><a href="_debug_print_8h.html#a2f7470d52c5228c3c49911db65d8d8f4">DebugPrintMore</a></div><div class="ttdeci">void DebugPrintMore()</div><div class="ttdoc">调低打印级别,打印更多信息 </div><div class="ttdef"><b>Definition:</b> DebugPrint.cpp:75</div></div>
<div class="ttc" id="_debug_print_8h_html_a0024c58dbc30501f3b520698857ff45b"><div class="ttname"><a href="_debug_print_8h.html#a0024c58dbc30501f3b520698857ff45b">DebugTimeStart</a></div><div class="ttdeci">void DebugTimeStart()</div><div class="ttdoc">调试时间桩开始 </div><div class="ttdef"><b>Definition:</b> DebugPrint.cpp:167</div></div>
<div class="ttc" id="_debug_print_8h_html_a96f4ae49cc34a003eeff0799eed93db5"><div class="ttname"><a href="_debug_print_8h.html#a96f4ae49cc34a003eeff0799eed93db5">DebugPrintEnable</a></div><div class="ttdeci">void DebugPrintEnable(bool enbale)</div><div class="ttdoc">打印调试使能 </div><div class="ttdef"><b>Definition:</b> DebugPrint.cpp:133</div></div>
<div class="ttc" id="_debug_print_8h_html_ab162380fc8b9ecd4783ef38fc32641c3"><div class="ttname"><a href="_debug_print_8h.html#ab162380fc8b9ecd4783ef38fc32641c3">DebugTime</a></div><div class="ttdeci">char * DebugTime()</div><div class="ttdoc">当前打印时间 </div><div class="ttdef"><b>Definition:</b> DebugPrint.cpp:154</div></div>
<div class="ttc" id="_base_type_8h_html"><div class="ttname"><a href="_base_type_8h.html">BaseType.h</a></div></div>
<div class="ttc" id="_debug_print_8h_html_acb8daaa78864379813a74092d959ccb0"><div class="ttname"><a href="_debug_print_8h.html#acb8daaa78864379813a74092d959ccb0">DebugPrintLevel</a></div><div class="ttdeci">sint32 DebugPrintLevel()</div><div class="ttdoc">返回当前打印级别 </div><div class="ttdef"><b>Definition:</b> DebugPrint.cpp:122</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2016年 七月 7日 星期四 19:49:37 , 为 embedme使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>
